﻿@using ITProject.WebUI.Infrastructure.HtmlHelpers
<table id="PoleU" >
   <tr>
        <td colspan="2">
            Jesteś zalogowany jako <span id="Namelogin">@User.Identity.Name </span>
        </td>
   </tr>
   <tr>
        <td width="100px" height="130px" class="avatar" rowspan="7">
        @{
            
            string a = Html.GetAvatarPath(User.Identity.Name);
            string av=@Url.Content("~/UserFiles/Avatars/"+a);
            @:<img src=@av alt="avatar"/>
        }
        </td>
   </tr>
  
   <tr>
        <td class="menu">
        Menu użytkownika
        </td>
   </tr>
   <tr>
        <td  >
            @Html.ActionLink("Twój Profil", MVC.Account.ActionNames.Profil, MVC.Account.Name,new {Login=User.Identity.Name}, new { @class = "menuC" })
        </td>
   </tr>
   <tr>
        <td >
            @Html.ActionLink("Edytuj Profil", MVC.Account.ActionNames.Edit, MVC.Account.Name,null, new { @class = "menuC" })
        </td>
    </tr>
    <tr>
        <td >
            @{ 
            
            int um=Html.UnreadedMessages(User.Identity.Name);
            string s="";
            s="Wiadomosci ("+um+")"; 
            @:@Html.ActionLink(s, MVC.Message.ActionNames.Inbox, MVC.Message.Name,null, new { @class="menuC"})
            }
        </td>
    </tr>
    <tr>
        <td>
            @Html.ActionLink("Wyloguj", MVC.Account.ActionNames.Logout, MVC.Account.Name,null, new { @class = "menuC" })
        </td>
     </tr>
     <tr>
     </tr>  

      </table>